package team.bluepen.supermarket.data.database;

import space.lingu.light.*;
import team.bluepen.supermarket.data.database.dao.ProductDao;
import team.bluepen.supermarket.data.database.dao.ProductIdAmountDao;
import team.bluepen.supermarket.data.database.dao.ProductIdStatusAmountDao;
import team.bluepen.supermarket.data.entity.Product;
import team.bluepen.supermarket.data.entity.ProductIdAmount;
import team.bluepen.supermarket.data.entity.ProductIdStatusAmount;

/**
 * @author RollW
 */
@Database(name = "supermarket_proj", tables = {
        Product.class, ProductIdAmount.class, ProductIdStatusAmount.class
}, version = 1)
@LightConfiguration(key = LightConfiguration.KEY_VARCHAR_LENGTH, value = "255")
public abstract class SupermarketSystemDatabase extends LightDatabase {
    public abstract ProductDao getProductDao();

    public abstract ProductIdAmountDao getProductIdAmountDao();

    public abstract ProductIdStatusAmountDao getProductIdStatusAmountDao();
}
